package com.charry.dataobject;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * Created by Charry on 2017/11/2.
 */
@Entity
@Data
public class OrderDetail {

    /*
    detail_id
    order_id
    product_id
    product_name
    product_price
    product_quantity
    product_icon
    create_time
    update_time
    */

    @Id
    private String detailId;
    //订单id
    private String orderId;
    //商品id
    private String productId;
    //商品名称
    private String productName;
    //商品价格
    private BigDecimal productPrice;
    //商品数量
    private Integer productQuantity;
    //商品图片
    private String productIcon;


}
